package cn.foodProject.gsonBean;

import java.util.List;

public class FoodGsonBean {

    /**
     * data : [{"id":1,"name":"红烧肉","label":"很好吃","description":"非常好吃","icon":"hongshaorou.jpg","price":29},{"id":2,"name":"萝卜汤","label":"很烫","description":"非常香","icon":"luobotang.jpg","price":19},{"id":3,"name":"青椒炒肉","label":"好吃","description":"好吃又实惠","icon":"qingjiaochaorou.jpg","price":25},{"id":4,"name":"茄子鸡丁","label":"好吃的要死","description":"好吃","icon":"qiezijiding.jpg","price":21},{"id":5,"name":"清炒包菜","label":"好吃便宜","description":"好吃","icon":"qingchaobaocai.jpg","price":10},{"id":6,"name":"爆炒牛肉","label":"美味极了","description":"不错","icon":"baochaoniurou.jpg","price":30},{"id":7,"name":"老干妈","label":"好","description":"老干妈","icon":"laoganma.jpg","price":8},{"id":8,"name":"秘制小汉堡","label":"没有描述","description":"没有描述","icon":"mizhixiaohanbao.jpg","price":99}]
     * success : true
     * message : 查询成功
     */

    private boolean success;
    private String message;
    private List<Food> data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<Food> getData() {
        return data;
    }

    public void setData(List<Food> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "FoodGsonBean{" +
                "success=" + success +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public static class Food {
        /**
         * id : 1
         * name : 红烧肉
         * label : 很好吃
         * description : 非常好吃
         * icon : hongshaorou.jpg
         * price : 29
         */

        private int id;
        private String name;
        private String label;
        private String description;
        private String icon;
        private int price;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        @Override
        public String toString() {
            return "Food{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", label='" + label + '\'' +
                    ", description='" + description + '\'' +
                    ", icon='" + icon + '\'' +
                    ", price=" + price +
                    '}';
        }
    }
}
